import request from '@/utils/request'

export function getCustomer() {
  return request({
    url: '/customers',
    method: 'get'
  })
}

export function createCustomer(data) {
  return request({
    url: '/customer',
    method: 'post',
    data: data
  })
}

export function updateCustomer(id, data) {
  return request({
    url: '/customer/' + id,
    method: 'patch',
    data: data
  })
}

export function deleteCustomer(id) {
  return request({
    url: '/customer/' + id,
    method: 'delete'
  })
}

